package com.niubi.yygh.orders.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.niubi.yygh.model.order.OrderInfo;
import com.niubi.yygh.vo.order.OrderCountQueryVo;
import com.niubi.yygh.vo.order.OrderQueryVo;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 牛俊杰
 * @since 2022-03-29
 */
@Repository
public interface OrderInfoService extends IService<OrderInfo> {

  Long saveOrder(String scheduleId, Long patientId);

  IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

  OrderInfo getOrderInfo(Long orderId);

  Boolean cancelOrder(Long orderId);

  void patientTips(String dateString);

  Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
